<template>
  <div class="salarys">
    <h1>工资页面</h1>
    <h3>{{ $t('xxx') }}</h3>
    <el-date-picker type="date" placeholder="选择日期" />
    <el-button @click="btnClick">点我切换语言</el-button>
    <el-calendar />
  </div>
</template>

<script>
import Cookie from 'js-cookie'
export default {
  methods: {
    btnClick() {
      this.$i18n.locale = this.$i18n.locale === 'zh' ? 'en' : 'zh'
      Cookie.set('lang', this.$i18n.locale)
      this.$router.go()
    }
  }
}
</script>

<style></style>
